<%@ page contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<link href="css/admin/user/get.css" rel='stylesheet' />
<div>
<button id="saveBtn">保存</button>
</div>
<form>
<table class='user' cellspacing="1" align="center">
	<caption>
		用户 ${bean.localName} 详细资料
	</caption>
	<tr>
		<th >
			用户名
		</th>
		<td  colspan="5">
			<input name="bean.username" type="text" id="username"
				value="${bean.username}" />

		</td>
	</tr>
	<tr>
		<th>
			中文名
		</th>
		<td colspan="5">
			<input name="bean.localName" type="text" id="localName"
				value="${bean.localName}" />

		</td>
	</tr>
	<tr>
		<th>
			密码
		</th>
		<td  colspan="5">
			<input name="bean.password" type="password" id="password"
				value="${bean.password}" />
		</td>
	</tr>
	<tr>
		<th>
			确认密码
		</th>
		<td  colspan="5">
			<input name="bean.repassword" type="password" id="repassword"
				value="${bean.password}" />
		</td>
	</tr>
	<tr>
	<td></td>
	<td>部门</td>
	<td>角色</td>
	<td>权限</td>
	<td>主权限[用户指定登录页]</td>
	</tr>
	<tr>	
	<td>资源</td>	
		<td>
			<select name="bean.department.id" id="deptId" size="10"></select>
		</td>		
		<td >
			<select name="bean.role.id" size="10" id="roleId"></select>

		</td>
		
		<td >
			<select name="bean.authoritys" id="authName" size="10"	multiple="multiple" ></select>
		</td>
		
		<td >
			<select  id="primarySecu" size="10"	></select>
		</td>
	</tr>
</table>
</form>
<script type="text/javascript">
var act = 'update';
var username = '${bean.username}';
var roleId = "${bean.role.id}";
var deptId= "${bean.department.id}"||-1;
var psecuName = '${bean.primarySecurole.name}' || null; 
</script>
<script type="text/javascript" src="scripts/apps/admin/user/user.js"></script>